<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" class="table">
    <tr>
        <th>No.</th>
        <th>stuId</th>
        <th>stuName</th>
        <th>stuAge</th>
        <th>stuSex</th>
        <th>stuBirthday</th>
    </tr>
    <tr th:each="student, statu : ${student}">
        <td th:text="${statu.count}"></td>
        <td th:text="${student.stuId}"></td>
        <td th:text="${student.stuName}"></td>
        <td th:text="${student.stuAge}"></td>
        <td>
            <span th:if="${student.stuSex} == 男">男</span>
            <span th:if="${student.stuSex} == 女">女</span>
        </td>
        <td th:text="${student.stuBirthday ne null ? #dates.format(student.stuBirthday, 'yyyy‐MM‐dd') :'保密'}"></td>
    </tr>
</table>
</body>
</html>